package com.qf.provider.service.impl;

import com.qf.dubbo.service.TestService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;

import java.text.SimpleDateFormat;
import java.util.Date;

@Service(version = "1.0")
public class TestServiceImpl implements TestService {

    @Value("${server.port}")
    private String port;


    @Override
    public String getNow() {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + "：V1.0：" + port ;
    }
}
